--- aiksaurus-1.2.1/base/aiksaurus.t.cpp
+++ aiksaurus-1.2.1/base/aiksaurus.t.cpp
@@ -24,6 +24,7 @@
 #include "config.h"
 #include <iostream>
 #include <string>
+#include <cstdlib>
 using namespace std;
 using AiksaurusImpl::AsciiCompare;
 
--- aiksaurus-1.2.1/gtk/src/Display.cpp
+++ aiksaurus-1.2.1/gtk/src/Display.cpp
@@ -22,6 +22,7 @@
 #include "Meaning.h"
 #include "DialogMediator.h"
 #include "Exception.h"
+#include <cstring>
 using namespace std;
 
 namespace AiksaurusGTK_impl
--- aiksaurus-1.2.1/gtk/src/gtkAiksaur.t.cpp
+++ aiksaurus-1.2.1/gtk/src/gtkAiksaur.t.cpp
@@ -23,6 +23,7 @@
 #include <gtk/gtk.h>
 #include <iostream>
 #include <string>
+#include <cstdlib>
 using namespace std;
 
 int main(int argc, char** argv)
